<template>
  <!-- 每个template下只有一个并列的div,但这个div下的内容不限 -->
  <div id="app">
    <div id="nav">
      <router-link to="/">Home</router-link> |
      <router-link to="/about">About</router-link> |
      <router-link to="/login">login</router-link> |
      <router-link to="/pricelist">PriceList</router-link>
    </div>
    <router-view/>
  </div>
</template>

<script>
// import {L2Dwidget} from 'live2d-widget'
// let moduleName = 'haru'
// export default {
//   mounted() {
//     L2Dwidget.init({
//       model: {
//         // jsonPath: '/static/live2d-widget-model-' + moduleName + '/02/assets/' + moduleName + '02.model.json',
//         jsonPath: 'http://121.196.16.146:8008/live2d-widget/live2d-widget-model-' + moduleName + '/02/assets/' + moduleName + '02.model.json',
//         scale: 1
//       },
//       "display": {
//         "position": "right",
//         "width": 150,
//         "height": 300,
//         "hOffset": 0,
//         "vOffset": 0
//       },
//       "mobile": {
//         "show": false,
//         "scale": 2
//       },
//       "react": {
//         "opacityDefault": 0.7,
//         "opacityOnHover": 0.2
//       }
//     }, 1000)
//   }
// }
</script>

<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
